package com.woniuxy.social.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.sql.Blob;
import java.time.LocalDateTime;

/**
 * <p>
 * 社区告示表
 * </p>
 *
 * @author John_Yeung
 * @since 2020-09-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("NOTICE")
@ApiModel(value="Notice对象", description="社区告示表")
@KeySequence("SEQ_NOTICE")
@NoArgsConstructor
@AllArgsConstructor
public class Notice implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "社区告示表主键id")
    @TableId(value = "NOTICE_ID" , type = IdType.INPUT)
    private Integer noticeId;

    @ApiModelProperty(value = "社区告示表公告号")
    @TableField("NOTICE_NO")
    private Integer noticeNo;

    @ApiModelProperty(value = "公告版本")
    @TableField("NOTICE_EDITION")
    private Integer noticeEdition;

    @ApiModelProperty(value = "更新次数")
    @TableField("UPDATE_TIME")
    private Integer updateTime;

    @ApiModelProperty(value = "公告标题")
    @TableField("NOTICE_TITLE")
    private String noticeTitle;

    @ApiModelProperty(value = "公告内容")
    @TableField("NOTICE_CONTENT")
    private Blob noticeContent;

    @ApiModelProperty(value = "更新时间")
    @TableField("CREATE_DATE")
    private LocalDateTime createDate;

    @ApiModelProperty(value = "创造时间")
    @TableField("UPDATE_DATE")
    private LocalDateTime updateDate;

    @ApiModelProperty(value = "发布者名称")
    @TableField("PUBLISH_NAME")
    private String publishName;

    @ApiModelProperty(value = "公告软删除，0为未删除，1为已删除")
    @TableField("FLAG")
    private Integer flag;


}
